package old.gui;

import gameAppLayer.MainApp;

import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;

public class StateSecondMenu extends GUILayout {

	//All GUI elements contained in this GUIState
	public Button button1;
		
	public StateSecondMenu(MainApp app) {
		super(app, "SECOND_MENU");		
		initialize();
	}
	
	private void initEvents()
	{
		
	}

	@Override
	public void initialize() {
		//Detach any existing nodes
		detachAllChildren();
		
		//Acquire current aspect ratio
		//(DONE)
				
		//Create and attach nodes, geometries, GUIComponent objects at default resolution
		
		//First component
		//-----------------------------------
		Button button1 = new Button(90,90);
		Geometry geom1 = new Geometry("Button1", button1);
		geom1.setLocalTranslation(100, 100, 0);
		Material mat1 = new Material(app.getAssetManager(), "Common/MatDefs/Misc/SolidColor.j3md");
    	mat1.setColor("m_Color", ColorRGBA.Green);
    	geom1.setMaterial(mat1);		
		this.attachChild(geom1);
		componentMap.put(button1, geom1);
		//-----------------------------------
		
		
		//Next component
		//-----------------------------------
		
		//-----------------------------------
				
		//Load all events
		initEvents();		
	}

	public void onAction(String arg0, boolean arg1, float arg2) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void registerEvents() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeEvents() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void registerListeners() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeListeners() {
		// TODO Auto-generated method stub
		
	}

}
